#include "fxcc/yml/Serializer.h"
#include "fxcc/core/graph/common/CameraSubView.h"

using namespace fxcc::yml;
using CType = fxcc::graph::common::CameraSubView;;

template<>
void Serializer::Encode<CType>(YAML::Node& node, const CType& inst)
{
	Encode<fxcc::graph::common::Transform>(node, inst);
	SetVariable<fxcc::graph::common::ProjSub>(node, "projSub", inst.m_ProjSub);
}


template<>
bool Serializer::Decode<CType>(const YAML::Node& node, CType& inst)
{
	Decode<fxcc::graph::common::Transform>(node, inst);
	GetVariable<fxcc::graph::common::ProjSub>(node, "projSub", inst.m_ProjSub);
	return true;
}
